﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace InSafetyAirClient.GUI.Airline
{
    public partial class CreateA : UserControl
    {
        public CreateA()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            InSafetyAirService.AirLine airl= new InSafetyAirService.AirLine();
            airl.name = textBox1.Text;
            ServiceSingle.Instance.getService().AddToDatabase(airl);
            textBox1.Text = "";
        }
    }
}
